package com.lzx.musiclib;

import android.app.Application;

import com.lzx.musiclibrary.manager.MusicManager;
import com.lzx.musiclibrary.utils.BaseUtil;

public class GameApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        init();
    }

    private void init() {
        if (!BaseUtil.getCurProcessName(this).contains("musiclibrary")) {
            MusicManager.get().setContext(this).init();
            //MusicManager.get().setNotificationCreater()
            MusicManager.get().setAutoPlayNext(true);
        }
    }
}
